/*
 * based off of https://github.com/gitterHQ/sidecar
 * license: MIT
 */

#wikiFrame {
    width: 100%;
    height: 100%;
    top:0;
    bottom: 0;
    position: absolute;
    overflow: hidden;
}

.wiki-aside {
    width:500px;

    z-index: 20000;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;

    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;

    background-color: @body-bg;
    border-left: 1px solid #ddd;
    box-shadow: -12px 0 18px 0 rgba(50, 50, 50, 0.1);

    transition: transform 0.3s cubic-bezier(0.16, 0.22, 0.22, 1.7);

    &.is-collapsed:not(.is-loading) {
      -webkit-transform: translateX(110%);
      transform: translateX(110%);
    }

    /* Add some "extension" so that there isn't a gap
     * when we translate(via animation) more than 100% */
    &:after {
      content: '';

      z-index: -1;
      position: absolute;
      top: 0;
      left: 100%;
      bottom: 0;
      right: -100%;

      background-color: @body-bg;
    }

    iframe {
      width: 100%;
      height: 100%;
      top:0;
      bottom:0;
      position:absolute;
      overflow: hidden;
    }
}

.wiki-aside .wiki-header {
  display: none;
}

.wiki-aside .wiki-container {
  padding-top: 10px;
}

.wiki-aside .wikiSelector {
  top: 50px;
}

.wiki-aside-action-bar {
    position: absolute;
    top: 0;
    right: 15px;

    display: -webkit-flex;
    display: flex;
    justify-content: flex-end;

    padding-bottom: 5px;
    padding-right:0px;
    padding-top:5px;
    z-index: 100;
}

.wiki-fixed-header {
  position: fixed;
  background: white;
  padding-top: 5px;
  width: 100%;
  z-index: 1;
  left: 0;
  top: 0;
  @media (max-width: 720px) {
    padding-top:30px;
  }
  p {
  margin: 5px 0 20px;
    @media (max-width: 720px) {
      margin-bottom:10px;
    }
  }
  hr {
    margin:30px 0;
    @media (max-width: 720px) {
      margin:25px 0;
    }
  }
 }

.wiki-buttons {
  margin-top: -10px;
  & button,
  & .input-group{
    width:300px;
  }
  .input-group{
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
  }
}

#wiki-filter {
    background:#fff;
    border-color: darkgreen;
}

.wiki-aside-action-item {
    display: -webkit-flex;
    display: flex;
    /* main axis */
    justify-content: center;
    /* cross axis */
    align-items: center;

    width: 40px;
    height: 40px;

    padding-left: 0;
    padding-right: 0;

    opacity: 0.65;
    background: none;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
    border: 0;
    outline: none;

    cursor: pointer;
    cursor: hand;

    transition: all 0.2s ease;

    &:hover,
    &:focus {
      opacity: 1;
    }

    &:active {
      filter: hue-rotate(80deg) saturate(150);
    }
}

.wiki-aside-action-pop-out {
    margin-right: -4px;
    background-image: url()
}

.wiki-aside-action-collapse {
    background-image: url()
}
